<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品列表</title>
    <!-- jquery -->
    <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
    <!-- bootstrap -->
    <link rel="stylesheet" type="text/css"
          th:href="@{/bootstrap/css/bootstrap.min.css}"/>
    <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.min.js}">
    </script>
    <!-- layer -->
    <script type="text/javascript" th:src="@{/layer/layer.js}"></script>
    <!-- common.js -->
    <script type="text/javascript" th:src="@{/js/common.js}"></script>

    <!--网页的图标-->
    <link rel="icon" th:href="@{/images/favicon2.ico}">
    <!--全局样式-->
    <link rel="stylesheet" th:href="@{/css/reset.css}">
    <!--字体图标-->
    <link rel="stylesheet" th:href="@{/css/iconfont.css}">
    <!--自己的样式-->
    <link rel="stylesheet" th:href="@{/css/mi.css}">
</head>
<body>
<div class="panel panel-default">
  <div class="panel-heading">秒杀商品列表</div>
  <table class="table" id="goodslist2">
    <tr>
      <td>商品名称</td>
      <td>商品图片</td>
      <td>商品原价</td>
      <td>库存数量</td>
      <td>商品类别</td>
      <td>上架秒杀</td>
    </tr>
    <tr th:each="goods,goodsStat : ${goodsList2}" th:if="${goods.seckillPrice} eq null">
      <td th:text="${goods.goodsName}"></td>
      <td><img th:src="@{${goods.goodsImg}}" width="100" height="100"/>
      </td>
      <td th:text="${goods.goodsPrice}"></td>
      <td th:text="${goods.goodsStock}"></td>
      <td th:text="${goods.goodsCategory}"></td>
      <td><a th:href="'/seckillground/toseckillground/'+${goods.id}">上架秒杀</a></td>
    </tr>
  </table>
</div>
</body>
</html>